<!doctype html>
<html>
	<head>
        <title></title>
        <script src="js/Init.js" type="text/javascript"></script>
	</head>
<body>
    <div id="main">

        <input id="first" type="text" v-model="ViewModel.inputName" placeholder="First name">

        <button @click="click">Call Factory 1</button>

        <button @click="asPromise(ViewModel.CreateObject)(ViewModel.inputName).then(result).catch(error)">Call Factory 2</button>

        <p>{{ViewModel.factoryresult.LastName}}</p>

    </div>
   
</body>
         
</html>